<% @page_title = "Login" %>
<%= stylesheet_link_tag "admin/form", :media => "all" %>
<div class="login-form">
  <h1>Login</h1>
  <div class='content'>
  <%= form_tag(:controller => 'admin/user', :action => 'login_attempt') do %>
  <p><label>Username:</label><%= text_field_tag :username_or_email %></p>
  <p><label>Password:</label><%= password_field_tag :login_password %></p>
  <p class='temp'><label>&nbsp;</label><%= link_to "Quên mật khẩu", :controller => "admin/user", :action => "forgot_passw" %></p>
  <p class='action'><label>&nbsp;</label><%= submit_tag('Login') %></p>
  <% end %>
  </div><!-- End .content -->
</div><!-- End .login-form -->
<div class='clear'></div>

<% if flash[:notice] %>
  <div class="notice">
  	<h1>Notice</h1>
  	<div class='content' style="color: red; font-weight: bold">
  		<%= flash[:notice] %>
  	</div>
  </div><!-- End .notice -->
<% end %>